home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / FROMUTS / MAKEPCX / source / Makefile
Makefile  |  1991-12-08  |  872b  |  49 lines

  1. #
  2. # Makefile for MAKEPCX
  3. #
  4. # Can be made in both WIMP and COMMAND LINE flavours.
  5. #
  6. # You'll need C$Libroot and C$Path set up
  7. #
  8. # D.Pead 1991
  9.  
  10. # Both versions
  11.  
  12. .SUFFIXES: .o .c
  13.  
  14. HEADERS = h.makepcx h.palettes
  15. LIBS = c:o.risc_oslib c:o.ansilib
  16.  
  17. .c.o:; cc -c -o $@ $<
  18.  
  19. both : !runimage makepcx
  20.  
  21. # Runimage for WIMP version
  22.  
  23. !runimage : o.pcxwimp o.makepcx
  24.     link -o !RunImage o.pcxwimp o.makepcx $(LIBS)
  25.     squeeze !RunImage
  26.  
  27. # Command line version
  28.  
  29. makepcx : o.pcxcli o.makepcx o.getopt o.alloca
  30.     link -o makepcx o.pcxcli o.makepcx o.getopt o.alloca $(LIBS)
  31.     squeeze makepcx
  32.  
  33. # Objects
  34.  
  35. o.pcxwimp : c.pcxwimp $(HEADERS)
  36.  
  37. o.pcxcli : c.pcxcli $(HEADERS) h.getopt
  38.  
  39. o.makepcx : c.makepcx $(HEADERS)
  40.  
  41. # GNU GETOPT and ALLOCA routines used by command line version
  42.  
  43. o.getopt : c.getopt
  44.     cc -pcc -c -w -DUSG -Dindex=strchr c.getopt
  45.  
  46. o.alloca : c.alloca
  47.     cc -pcc -c -w -DUSG c.alloca
  48.  
  49.